-
Notifications
You must be signed in to change notification settings - Fork 12
Final changes of merges #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # KJ1124/Thor_Puzzle_assign.c
KJ1124/Thor_Puzzle_assign.c
Outdated
| int light_y; // the Y position of the light of power | ||
| int initial_tx; // Thor's starting X position | ||
| int initial_ty; // Thor's starting Y position | ||
| cin >> light_x >> light_y >> initial_tx >> initial_ty; cin.ignore(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain this line -- what does it do? Why is it here?
KJ1124/Thor_Puzzle_assign.c
Outdated
| while (1) { | ||
|
|
||
|
|
||
| int remaining_turns; // The remaining amount of turns Thor can move. Do not remove this line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put the comment on the previous line, so it will be rendered by CodeChat.
|
|
||
|
|
||
| int remaining_turns; // The remaining amount of turns Thor can move. Do not remove this line. | ||
| cin >> remaining_turns; cin.ignore(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain. Why do this? Why ignore?
KJ1124/Thor_Puzzle_assign.c
Outdated
| ---------------- | ||
| **Based on the position light of power I first determined which direction he would travel and then developed this code on the basis of each test code.** | ||
|
|
||
| **Test case 1 & 2:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove your notes on each test case, and instead focus on how to solve the overall problem. I like instructions on how to run the tests cases, though -- leave that.
KJ1124/Thor_Puzzle_assign.c
Outdated
| Code for Movement | ||
| ------------------ | ||
| */ | ||
| // **this is the fourth test case...** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put comments explaining what this line does right here, rather than in the preceding paragraphs.
KJ1124/Thor_Puzzle_assign.c
Outdated
| initial_ty++; | ||
| } | ||
| // **This is the first test case below...** | ||
| else if(light_x > initial_tx) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do all the other cases only have one comparison? There's no way to go NE, for example.
KJ1124/Thor_Puzzle_assign.c
Outdated
| } | ||
| // **Don't forget to include the "else{}" statment at the end.** | ||
| else{}; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix spacing -- all the code should be indented, so that each bracket is has its own horizontal position.
|
Resubmit by midnight, 3-Mar. |
|
I haven't seen any progress on this... |
|
Is this superseded by #22? |
This is my final changes to my code with peters comments and Dr. Jones notes aswell